home *** CD-ROM | disk | FTP | other *** search
/ EuroCD 3 / EuroCD 3.iso / Programming / Amos / AMOSList-0497 / AMOSLIST / 000188_amos-request@svcs1.digex.net_Wed Apr 23 03:34:16 1997.msg < prev    next >
Text File  |  1998-06-24  |  3KB  |  68 lines

  1. Received: from svcs1.digex.net (svcs1.digex.net [204.91.197.224])
  2.     by mail3.access.digex.net (8.8.5/8.8.5) with ESMTP id DAA17082
  3.     for <mcox@access.digex.net>; Wed, 23 Apr 1997 03:34:15 -0400 (EDT)
  4. Received: (from daemon@localhost)
  5.     by svcs1.digex.net (8.8.5/8.8.5) id BAA26687
  6.     for amos-out; Wed, 23 Apr 1997 01:20:53 -0400 (EDT)
  7. Received: from mail2.access.digex.net (mail2.access.digex.net [205.197.247.3])
  8.     by svcs1.digex.net (8.8.5/8.8.5) with ESMTP id BAA26684
  9.     for <amos-list@svcs1.digex.net>; Wed, 23 Apr 1997 01:20:53 -0400 (EDT)
  10. Received: from quartz.ucs.ualberta.ca (quartz.ucs.ualberta.ca [129.128.5.19])
  11.     by mail2.access.digex.net (8.8.5/8.8.5) with ESMTP id BAA07413
  12.     for <amos-list@access.digex.net>; Wed, 23 Apr 1997 01:20:51 -0400 (EDT)
  13. Received: from henday.hfs.ualberta.ca (uucp@henday.hfs.ualberta.ca [129.128.163.10])
  14.     by quartz.ucs.ualberta.ca (8.8.5/8.8.5) with ESMTP id XAA41716
  15.     for <amos-list@access.digex.net>; Tue, 22 Apr 1997 23:20:44 -0600
  16. Received: (from uucp@localhost) by henday.hfs.ualberta.ca (8.6.12/8.6.9) id XAA30145 for <amos-list@access.digex.net>; Tue, 22 Apr 1997 23:20:43 -0600
  17. Date: Tue, 22 Apr 1997 23:20:43 -0600
  18. Message-Id: <199704230520.XAA30145@henday.hfs.ualberta.ca>
  19. Received: from UNKNOWN(172.16.1.110), claiming to be "[172.16.1.110]"
  20.  via SMTP by henday.hfs.ualberta.ca, id smtpd30139aaa; Tue Apr 22 23:20:37 1997
  21. X-Sender: cyallop@172.16.1.1
  22. Mime-Version: 1.0
  23. Content-Type: text/plain; charset="us-ascii"
  24. To: amos-list@access.digex.net
  25. From: cyallop@gpu.srv.ualberta.ca (Curtis Yallop)
  26. Subject: Re: Printing to file
  27. Status: RO
  28. X-Status: 
  29.  
  30. >>What I want to do is use AmosPro to create a file in Ram called Datapath
  31. >>and then execute it with Amiga dos.
  32. >>If you look at the example below it should create a file called Datapath
  33. >>containing "CD workbench:data".
  34. >>
  35. >>a$="workbench:data"
  36. >>C$="CD "
  37. >>A$=C$+A$
  38. >>Open Out 3,"Ram:Datapath"
  39. >>Print #3,A$
  40. >>Print #3,Chr$(13)
  41. >>Close 3
  42. >
  43. >If you write your info to a bank and Bsave from it you eliminate the
  44. >extra characters.  But in this case, how about quick & dirty with the
  45. >CLI echo command?
  46. >
  47. >A$="CD workbench:data"
  48. >exec "echo "+A$+" >ram:Datapath"  :Rem Keep those spaces
  49.  
  50. This echo thing will only work once, replacing the file each time.  To
  51. enter further commands put '>>' (append file) instead of '>' (replace file)
  52.  
  53. Better is the Amos way:
  54.  
  55. Open Out 3,"Ram:Datapath"
  56. Print #3,A$;Chr$(10);
  57. Close 3
  58.  
  59. Exec "execute ram:Datapath"
  60.  
  61. Curt
  62.  
  63. ============================================================================
  64. Curtis Yallop       "Ms-Dos Sucks Dirt"      cyallop@gpu.srv.ualberta.ca
  65. Amiga 1200 - '030 28MHz, 6MB RAM, 540HD      http://www.ualberta.ca/~cyallop
  66. ============================================================================
  67.  
  68.